<?php
/**
 * API：数据库测试模块
 */
namespace app\controller\api;

use app\BaseController;
use think\facade\Db;

class Database extends BaseController
{
    //查询-列表
    public function test()
    {
        $cursor = Db::table('user')->where('isActive', 1)->select();
        return json($cursor);
    }

}
